The Lax–Wendroff method, named after Peter Lax and Burton Wendroff, is a numerical method for the solution of hyperbolic partial differential equations, based on finite differences. It is second-order accurate in both space and time.
Suppose one has an equation of the following form:
where x and t are independent variables, and the initial state, ƒ(x, 0) is given.
The first step in the Lax–Wendroff method calculates values for ƒ(x, t) at half time steps, tn + 1/2 and half grid points, xi + 1/2. In the second step values at tn + 1 are calculated using the data for tn and tn + 1/2.
First (Lax) step:
Second step:
This method can be further applied to some systems of partial differential equations.
|